/**
 * 
 */
package kevin.study.zephyr.domain.model.ui;

import kevin.study.zephyr.domain.model.Field;
import kevin.study.zephyr.domain.model.base.Base;

/**
 * @author Kevin.Huang
 * @date 2007-9-26
 */
public class UIField extends Base {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6524085756948934936L;

	/**
	 * 于此UIField关联的Field
	 */
	private Field field;

	/**
	 * 是否多值
	 */
	private Boolean isMultivalue = false;

	/**
	 * 显示时的分割符
	 */
	private String displaySeparator = "\n";

	/**
	 * 输入时的分隔符,可多选
	 */
	private String[] inputSeparator = {"\r", "\n" };

	/**
	 * @return the isMultivalue
	 */
	public Boolean getIsMultivalue() {
		return isMultivalue;
	}

	/**
	 * @param isMultivalue
	 *            the isMultivalue to set
	 */
	public void setIsMultivalue(Boolean isMultivalue) {
		this.isMultivalue = isMultivalue;
	}

	/**
	 * @return the displaySeparator
	 */
	public String getDisplaySeparator() {
		return displaySeparator;
	}

	/**
	 * @param displaySeparator
	 *            the displaySeparator to set
	 */
	public void setDisplaySeparator(String displaySeparator) {
		if (displaySeparator == null) {
			throw new NullPointerException("This property<displaySeparator> can't be Null!");
		}
		this.displaySeparator = displaySeparator;
	}

	/**
	 * @return the inputSeparator
	 */
	public String[] getInputSeparator() {
		return inputSeparator;
	}

	/**
	 * @param inputSeparator
	 *            the inputSeparator to set
	 */
	public void setInputSeparator(String[] inputSeparator) {
		this.inputSeparator = inputSeparator;
	}

	/**
	 * @return the field
	 */
	public Field getField() {
		return field;
	}

	/**
	 * @param field
	 *            the field to set
	 */
	public void setField(Field field) {
		this.field = field;
	}

}
